import { createApp } from 'vue';
import pinia from '@/stores/index';
//@ts-expect-error
import App from './App.vue';
import router from '@/router';
import '@/assets/main.scss';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
// import './styles/index.scss';
import 'nprogress/nprogress.css';

const app = createApp(App);
app.use(pinia); // pinia创建并安装
app.use(router);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.mount('#app');
